<div class='fui-page fui-page-current member-log-page'>
    <div class='fui-content'>
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.awardstatus!=1}" class="external active" href="javascript:;" ng-click="pagedata.params.awardstatus=0;tool.get_list('jy_h5game/log/list/',true)">未兑奖</a>
			<a ng-class="{'active':pagedata.params.awardstatus==1}" class="external" href="javascript:;" ng-click="pagedata.params.awardstatus=1;tool.get_list('jy_h5game/log/list/',true)">已兑奖</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有获奖记录!
        </div>
        <div class='fui-list-group container' style="margin-top:0" ng-show="pagedata.list.length>0" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-inner">
					<div class='title'>
						<span class="red"><i class="icon icon-gifts"></i></span>
						<span style="margin-left:0.3rem">{{item.award}}</span>
						<span class="gray" style="font-size:0.6rem;">({{item.rtitle}})</span>
						<span class="label label-info">{{item.prizeType!=1?'虚拟':'实物'}}</span>
					</div>
					<div class='stubtitle'>
						<span ng-if="pagedata.show == 1">红包：{{item.awardhb}}</span>
						<span ng-if="pagedata.show != 1">兑换码：{{item.code1}}</span>
					</div>
					<div class='gray'>{{item.createtime}}</div>
				</div>
				<div class='fui-list-angle'>
					<a ng-if="item.awardstatus==0 && item.prizeType!=1" class="label label-primary" id="data_submit" ng-click="post(item,'/myaward/post/id='+item.id)">申请兑换</a>
					<a ng-if="item.awardstatus==0 && item.prizeType==1" class="label label-primary" id="data_submit" ng-click="pagedata.showzhuan=true;pagedata.itemid=item.id">申请兑换</a>
					<a ng-if="item.awardstatus==1" class="label label-default">已兑换</a>
				</div>
			</div>
		</div>
    </div>
</div>
<div class="fe-floatright-bottom right"  style="top:23.5rem;right:0.95rem">
	<a ng-click="access_json('jy_h5game/history/')">
		<i class="icon icon-zuji" style="font-size:1.0rem;"></i>
	</a>
	<span style="font-size:0.5rem;">参与的</span>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行转账《兑换实物》操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收件人" ng-model="pagedata.post.ausername"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-mobilephone"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收件人" ng-model="pagedata.post.aphone"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-ditu"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收货地址" ng-model="pagedata.post.address"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'/myaward/post/id='+pagedata.itemid)">确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.tool.get_list('jy_h5game/log/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_h5game/log/list/');
}
</script>